package String;


import javax.swing.*;
import java.util.Random;
import java.util.Scanner;

public class Stringtext3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str=sc.nextLine();
        str=str.trim();
        String year=str.substring(6,10);
        String month=str.substring(10,12);
        String day=str.substring(12,14);
        System.out.println(year+"-"+month+"-"+day);

        }
    }

